<template>
  <div>
    <van-search
      v-model="value"
      shape="round"
      placeholder="请输入你想要的商品名称"
      background="#1ba784"
      @click-input="onFocus"
    />
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const value = ref('')
const onFocus = () => {
  router.push('/SearchList')
}
</script>

<style lang="less" scoped>
.search-btn {
  color: #fff;
}
</style>
